# coding: utf-8

require 'rest-client'

class JobRepo
  def self.all
    site = RestClient::Resource.new("#{Setting.cloap_url}/role")
    JSON.parse(site['job/all'].get)
  end
end
